import json
list = []
for i in range(5,10):
    list.append(i)


jl = json.dumps(list)

f1 = open('test.json',mode='w')
f1.write(jl)
f1.close()

